
/**
 * @Author: 陈瑞鹏
 * @Date:   2022-12-08 17:43:26
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2022-12-12 15:40:38
 */
import gameCtr from "./gameCtr";

export default class aiCtr {

  private static _ins: aiCtr = null;

  public static get ins(): aiCtr {
    if (this._ins == null) {
      this._ins = new aiCtr();
    }
    return this._ins;
  }

  public color: string = "#E38B8B50"; //ai的外框颜色，作为区别

  private _gold: number = 0; //ai 的金币

  public get gold() {
    return this._gold;
  }

  public set gold(val) {
    this._gold = val;
    gameCtr.ins.curScene.emit("updateAiGold");
  }

  /**
   * ai矿工
   */
  public aiMinerCirl: any[] = [];
}